﻿@using KurupiraApp.Models;
@model List<Usuario>
@{
    ViewBag.Title = "Index";
}

<div class="container-fluid">
    <h2>Adm Usuario</h2>
    <div class="row-fluid">
        <div class="sidebar-nav span4">                 
            @RenderPage("partials/sidenavmenu.cshtml")           
        </div>
        <div class="span4">
            <div class="thumbails8">
                <!-- Importando atividades recentes relativas a conta de usuário -->
                <!-- Listando Todos Usuários -->
                <table class="table table-striped">
                        <tr>
                            <th>Email</th>
                            <th>Nome</th>
                            <th>Telefone</th>                            
                            <th></th>
                            <th></th>
                        </tr>
                        @foreach (var usuario in Model)
                        {
                            <tr>
                                <td>@Html.ActionLink(@usuario.email, "view", new {id = @usuario.UsuarioID })</td>
                                <td>@usuario.Perfil.nome</td>
                                <td>@usuario.telefone</td>                                
                                <td>@Html.ActionLink("Editar","edit", new {id = @usuario.UsuarioID })</td>
                                <td>@Html.ActionLink("Deletar","remove", new {id = @usuario.UsuarioID })</td>                                
                            </tr>            
                        }
                </table>

            </div>
        </div>        
    </div>
</div>
